package com.link.base.base.quote.service;

import com.link.base.base.quote.dao.mybatis.mapper.QuoteItemMapper;
import com.link.base.base.quote.model.QuoteItem;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import javax.annotation.Resource;

import com.link.core.basic.service.ServiceException;
import org.springframework.stereotype.Component;

/**
 * @author unknown
 * @date unknown
 * @comments 报价单明细
 */
@Component
public class QuoteItemServiceImpl extends BasicServiceImpl<QuoteItem> implements QuoteItemService {
    @Resource
    private QuoteItemMapper quoteItemMapper;

    @Override
    public BasicMapper<QuoteItem> getBasicMapper() throws Exception {
        if (quoteItemMapper != null) {
            return quoteItemMapper;
        }
        throw new ServiceException("PUBLIC-006");
    }
}
